<?php

namespace app\index\model;
use think\Db;
use think\Model;

/**
 * 分类
 */
class GetCityProper extends Model
{
    // 设置当前模型对应的完整数据表名称
    protected $table = '__ADMIN_AREA__';
	public static function getCityProper($where=[]){
		$list_town =Db::name("admin_area")->where($where)->field('name,id')->select();
		return $list_town;
	}
	public static function getProvince(){
		$where['pid']=0;
		$where['status']=1;
		$list_province =Db::name("admin_area")->where($where)->field('name,id')->select();
		return $list_province;
	}
	public static function getPlace($where=[]){
		$place =Db::name("admin_area")->where($where)->field('name,id')->find();
		return $place;
	}
    
}